#1.内容乱码
# import requests
#
# url = 'https://qq.yh31.com/zjbq/2920180.html'
#
# head = {
#     'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
# }
#
# res = requests.get(url, headers=head)
#
# res.encoding="utd-8"
#
# print(res.text)

#2.证书不信任的网站
# import requests
#
# url = 'https://inv-veri.chinatax.gov.cn/'
#
# head = {
#     'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
# }
#
# res = requests.get(url, headers=head, verify=False)
# res.encoding="utf-8"
#
# print(res.text)